package org.upt.dcda;

import java.util.List;

import org.upt.dcda.db.OrderEntity;
import org.upt.dcda.db.UserEntity;
import org.upt.dcda.exceptions.BookstoreException;

public interface OrderManager
{

	public static final String	ORDER_BEAN_NAME	= "java:global/BookstoreEAR/BookstoreLogic/OrderManagerBean!org.upt.dcda.OrderManagerBeanRemote";

	public void placeOrder(UserEntity user, OrderItem[] orderItems)
			throws BookstoreException;

	public List<OrderEntity> viewAllOrders() throws BookstoreException;

	public List<OrderEntity> viewUserOrders(int userId)
			throws BookstoreException;

}
